/**
 * 
 */
package cn.electronic.sale.service.imp;

import java.util.List;

import org.springframework.stereotype.Service;

import cn.electronic.sale.pojo.Ordersdetail;
import cn.electronic.sale.service.OrdersDetailService;

/**
 * @author nightingale
 *
 */
@Service
public class OrdersDetailServiceImp extends BasicServiceImp implements
			OrdersDetailService {

	/* (non-Javadoc)
	 * @see cn.electronic.sale.service.OrdersDetailService#insertOrdersDetail(cn.electronic.sale.pojo.Ordersdetail)
	 */
	public void insertOrdersDetail(Ordersdetail ordersdetail) throws Exception {
		// TODO Auto-generated method stub
		//ordersdetailMapper.insert(ordersdetail);
		ordersdetailMapper.insertSelective(ordersdetail);
	}

	/* (non-Javadoc)
	 * @see cn.electronic.sale.service.OrdersDetailService#selectAllDetail()
	 */
	public List<Ordersdetail> selectAllDetail() throws Exception {
		// TODO Auto-generated method stub
		return ordersdetailMapper.selectAll();
		
	}

	/* (non-Javadoc)
	 * @see cn.electronic.sale.service.OrdersDetailService#deleteByPrimaryKey()
	 */
	public int deleteByPrimaryKey(Integer detailId) throws Exception {
		// TODO Auto-generated method stub
		return ordersdetailMapper.deleteByPrimaryKey(detailId);
	}

}
